import Vue from 'vue'
import App from './App.vue'
// import router from './router'
import { router } from './router/index'
import store from './store/index'
import '../my-theme/theme1.less';


// const iView = require('iview');
// Vue.use(iView);

import {
    Row,
    Col,
    Icon,
    Button,
    Table,
    Input,
    Radio,
    RadioGroup,
    Checkbox,
    CheckboxGroup,
    Select,
    Option,
    OptionGroup,
    DatePicker,
    Cascader,
    Transfer,
    InputNumber,
    Upload,
    Form,
    FormItem,
    Card,
    Notice,
    Modal,
    Progress,
    Avatar,
    Tag,
    Poptip,
    Tree,
    Menu,
    MenuItem,
    Submenu,
    DropdownMenu,
    DropdownItem,
    Tabs,
    TabPane,
    Dropdown,
    Page,
    Breadcrumb,
    BreadcrumbItem,
    Tooltip
} from 'iview';
import { Switch } from 'iview';
Vue.component('Row', Row);
Vue.component('Col', Col);
Vue.component('Icon', Icon);
Vue.component('Button', Button);
Vue.component('Table', Table);
Vue.component('Input', Input);
Vue.component('Radio', Radio);
Vue.component('RadioGroup', RadioGroup);
Vue.component('Checkbox', Checkbox);
Vue.component('CheckboxGroup', CheckboxGroup);
Vue.component('i-switch', Switch);
Vue.component('Select', Select);
Vue.component('Option', Option);
Vue.component('OptionGroup', OptionGroup);
Vue.component('DatePicker', DatePicker);
Vue.component('Cascader', Cascader);
Vue.component('Transfer', Transfer);
Vue.component('InputNumber', InputNumber);
Vue.component('Upload', Upload);
Vue.component('Form', Form);
Vue.component('FormItem', FormItem);
Vue.component('Card', Card);
Vue.component('Notice', Notice);
Vue.component('Modal', Modal);
Vue.component('Progress', Progress);
Vue.component('Avatar', Avatar);
Vue.component('Tag', Tag);
Vue.component('Poptip', Poptip);
Vue.component('Tree', Tree);
Vue.component('Menu', Menu);
Vue.component('MenuItem', MenuItem);
Vue.component('Submenu', Submenu);
Vue.component('DropdownMenu', DropdownMenu);
Vue.component('DropdownItem', DropdownItem);
Vue.component('Tabs', Tabs);
Vue.component('TabPane', TabPane);
Vue.component('Dropdown', Dropdown);
Vue.component('Page', Page);
Vue.component('Breadcrumb', Breadcrumb);
Vue.component('BreadcrumbItem', BreadcrumbItem);
Vue.component('Tooltip', Tooltip);
// Vue.prototype.$Message = Message
Vue.prototype.$Notice = Notice
Vue.prototype.$Modal = Modal
Vue.config.productionTip = false

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')